<extend name="Layout/index" />
<block name="main">
	<div class="container">
	<div class="row">
	<div class="col-md-12" style="font-size:17px;">
			<p style="font-size:20px;">
				给管理员 <b><{$userdata['adname']}></b> 分配权限 <hr>
			</p>
			<form action="<{:U('Admin/save_user_role',array('aduid'=>$userdata['aduid']))}>" method='post'>
			<p style="width:800px;">
				<volist name="rolelist" id="vo"> 
					<input type="checkbox" name="<{$vo['rolename']}>"  value="<{$vo['roleid']}>" <if condition="in_array($vo['roleid'],$user_role) eq true">checked</if>><{$vo['rolename']}>&nbsp;&nbsp;
					<if condition="$i%8 eq 0 "><br><hr></if>
				</volist>
			</p><hr>
			<input type="submit" value="保 存" class="btn btn-primary">

			</form>
</div></div></div>
</block>